<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>
<spring:message  code="pim"/> - <spring:message  code="homepage.project"/>&nbsp;
<c:out value="${bean.project.name}"></c:out> - <spring:message  code="title.project.workspace.tab.gantt"/>
</title>	
<link href="<%= request.getContextPath() %>/css/custom.css" rel="stylesheet" type="text/css" />
<link href="<%= request.getContextPath() %>/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%= request.getContextPath() %>/css/v.css" rel="stylesheet" type="text/css" />
<link href="<%= request.getContextPath() %>/css/jquery.ui.all.css" rel="stylesheet" type="text/css"/>	
<link href="<%=request.getContextPath()%>/dhtmlxGantt/codebase/dhtmlxgantt.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery-1.6.2.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery-ui-1.8.14.custom.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/dhtmlxGantt/codebase/dhtmlxcommon.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/dhtmlxGantt/codebase/dhtmlxgantt.js"></script>
<%@include file="script/pim-util.jsp" %>
<script type="text/javascript">
function createChartControl(htmlDiv1){
  var ganttChartControl = new GanttChart();
  ganttChartControl.setImagePath("<%=request.getContextPath()%>/dhtmlxGantt/codebase/imgs/");
  ganttChartControl.create(htmlDiv1);	
  ganttChartControl.loadData('..${bean.xmlFilePath}',true,true);
}
</script>
</head>
<body onload="createChartControl('GanttDiv')">
<c:if test="${bean.isSigned == true}">
<div id="all">
	<div id="wrapper">
	<div id="mainheader">
		<jsp:include page="include/common/headerSignedIn.jsp" />
	</div> 
	<div id="content-wrapper">
		<div id="top-menu">
		    <jsp:include page="include/common/topMenuHome.jsp" />
		</div>
		<div class="workspace-menu-top">
		    <c:choose>
			    <c:when test="${bean.isAdmin == true}">
			      <jsp:include page="include/common/admin-menu.jsp" />
			    </c:when>
			    <c:otherwise>
			      <jsp:include page="include/common/user-menu.jsp" />
			    </c:otherwise>
   			</c:choose> 
		</div> 		
		<div class="tabs-content v-row">
		  <div id="GanttDiv" style="width:960px;height:600px;position:relative;"></div>
		</div>
	</div>	
	<div class="footer">
		<jsp:include page="include/common/footer.jsp" />
	</div>
	</div>
</div>
</c:if>
</body>
</html>